import React, { Component } from 'react';
import { createSwitchNavigator } from 'react-navigation';
import StackNavigator from './StackNavigator';
import Welcome from './Views/Welcome';

const routeConfigs = {
  Welcome        : {
    screen            : Welcome,
    navigationOptions : {
      header : null
    }
  },
  StackNavigator : {
    screen            : StackNavigator,
    navigationOptions : {
      header : null
    }
  }
};

const navigatorConfig = {
  initialRouteName : 'Welcome' //引导页面
};

const SwitchNavigator = createSwitchNavigator(routeConfigs, navigatorConfig);
export default SwitchNavigator;
